package model;

import javax.swing.text.Document;

/**
 * A Card has a front and reverse side. Normally the front side is a kind of
 * question and the reverse side is the answer. The card could also be used to
 * learn vocabulary (front: first language, reverse: foreign language)
 * 
 * @author sloth42
 * 
 */
public class Card {

	private Long lastLearned;
	private Long expiredTime;
	private int askCount;
	private int rightAnswerCount;
	private Document frontCardside;
	private Document backCardside;
	private Batch myBatch;

	public Card(Document front, Document back) {
		this.frontCardside = front;
		this.backCardside = back;
	}

	public Long getLastLearned() {
		return lastLearned;
	}

	/**
	 * Set the timestamp when the card was learned the last time.
	 * @param lastLearned timestamp
	 */
	public void setLastLearned(Long lastLearned) {
		this.lastLearned = lastLearned;
	}

	/**
	 * Get the time in millis when the card expires.
	 */
	public Long getExpiredTime() {
		return expiredTime;
	}

	/**
	 * Set the time in millis when the card expires.
	 * @param expiredTime
	 */
	public void setExpiredTime(Long expiredTime) {
		this.expiredTime = expiredTime;
	}

	public int getAskCount() {
		return askCount;
	}

	public void setAskCount(int askCount) {
		this.askCount = askCount;
	}

	public int getRightAnswerCount() {
		return rightAnswerCount;
	}

	public void setRightAnswerCount(int rightAnswerCount) {
		this.rightAnswerCount = rightAnswerCount;
	}

}